import request from '@/utils/request'

// 列表
export function requestList(data) {
    return request({
        url: '/internal/incomeRecord/list',
        method: 'post',
        data: data
    })
}

// 详情
export function requestDetail(id) {
    return request({
        url: `/internal/incomeRecord/getInfo/${id}`,
        method: 'post'
    })
}

// 新增
export function requestAdd(data) {
    return request({
        url: '/internal/incomeRecord/add',
        method: 'post',
        data: data
    })
}

// 修改
export function requestUpdate(data) {
    return request({
        url: '/internal/incomeRecord/update',
        method: 'post',
        data: data
    })
}

// 删除
export function requestDel(id) {
    return request({
        url: `/internal/incomeRecord/delete/${id}`,
        method: 'post'
    })
}

//导出
export function exportTableExcel(query) {
    return request({
        url: '/internal/incomeRecord/export',
        method: 'get',
        params: query,
        responseType: 'blob'
    })
}
